package me.zhengjie.utils.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum PayTypeEnum {

    HIRES("HIRES","招聘订单"),
    RENTAL("RENTAL","出租订单"),
    ACTIVITY("ACTIVITY","优惠促销活动");


    private final String type ;

    private final String  info;


    public static PayTypeEnum getByType(String type){
        switch (type){
            case "HIRES":
                return HIRES;
            case "RENTAL":
                return RENTAL;
            case "ACTIVITY":
                return ACTIVITY;
            default:
                return null;
        }
    }



}
